package com.jctrip.hotel.source.xxl.elong.thread;

import com.jctrip.hotel.common.context.BeanContext;
import com.jctrip.hotel.source.service.elong.ElongTaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: zxy
 * @CreateTime: 2023-11-08 10:41
 * @Description:
 */
@Slf4j
public class SyncElongIncrThread implements Runnable{
    private final String sourceId;
    private final String secretId;
    private final String secretKey;
    private final String user;
    private final String local;
    private final String type;

    public SyncElongIncrThread(String sourceId, String user, String secretId, String secretKey, String local, String type) {
        this.sourceId = sourceId;
        this.user = user;
        this.secretId = secretId;
        this.secretKey = secretKey;
        this.local = local;
        this.type = type;
    }

    @Override
    public void run() {
        try {
            ElongTaskService elongTaskService = BeanContext.getApplicationContext().getBean(ElongTaskService.class);
//            elongTaskService.syncIncr(sourceId, user, secretId, secretKey, local, type);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }
    }
}
